0:a makefile
	LD_LIBRARY_PATH=../.. ./a
a:../../libk.so a.c makefile
	$(CC) -L../.. -lk a.c -o a
astatic:../../libk.a a.c makefile
	$(CC) -static a.c ../../libk.a -o a

liba.so:a.c makefile
	$(CC) -L../.. a.c -o liba.so -g -march=native -Dlibc -fPIC -Dshared -undefined -shared

../../libk.so:../../*.c ../../*.h
	$(MAKE) -C../.. libk.so

../../libk.a:../../*.c ../../*.h
	$(MAKE) -C../.. libk.a
